package com.ruoyi.system.service;

import com.ruoyi.system.domain.SysStudentBenefit;
import com.ruoyi.system.domain.SysStudentBenefitExchange;

import java.util.List;
import java.util.Map;

public interface SysStudentBenefitService {
    // 1. 获取所有启用的作业减免权益
    List<SysStudentBenefit> getEnableBenefits();

    // 2. 兑换权益（新增 needDowngrade 参数，支持降级兑换）
    boolean exchangeBenefit(Long userId, Long benefitId, Boolean needDowngrade);

    // 3. 获取当前用户的兑换历史记录
    List<SysStudentBenefitExchange> getUserExchangeHistory(Long userId);
    /**
     * 获取用户段位变化统计
     */
    List<Map<String, Object>> getUserRankChangeStatistics(Long userId);
}